package org.jssvc.opac.data

object Constant {

    val host_opac: String = "http://opac.jssvc.edu.cn/"

    // 第三方接口说明 https://github.com/zce/douban-api-docs
    val host_douban: String = "https://douban.uieee.com/"

    /**
     * 图书搜索
     * post
     */
    val api_book_search: String = host_opac + "opac/ajax_search_adv.php"

    /**
     * 封面和库存
     * http://opac.jssvc.edu.cn/opac/ajax_isbn_marc_no.php?marc_no=&isbn=&rdm=
     */
    val api_book_cover: String = host_opac + "opac/ajax_isbn_marc_no.php"

    /**
     * 馆藏信息
     * http://opac.jssvc.edu.cn/opac/ajax_item.php?marc_no=
     */
    val api_book_store_info: String = host_opac + "opac/ajax_item.php"


    /**
     * 图书详情
     */
    val api_book_details_by_isbn: String = host_douban + "v2/book/isbn/"

    /**
     * 热门借阅
     */
    val api_top_lend: String = host_opac + "top/top_lend.php"

    /**
     * 热门评分
     */
    val api_top_score: String = host_opac + "top/top_score.php"

    /**
     * 热门收藏
     */
    val api_top_shelf: String = host_opac + "top/top_shelf.php"

    /**
     * 热门图书
     */
    val api_top_book: String = host_opac + "top/top_book.php"

    /**
     * 热门检索
     */
    val api_top100_adv: String = host_opac + "opac/top100_adv.php"
}